<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let array_method = [
            'push',
            'pop',
            'push',
            'unshift',
            'shift',
            'sort',
            'reverse'
         ];

         // 以 Array 的原型 创建一个
         const Arraynewmethods = Object.create(Array.prototype)
         array_method.forEach(method => {
            Arraynewmethods[method] = function() {
                let res = Array.prototype[method].apply(this, arguments);
                return res;
            };
         })
    </script>
</body>
</html>